using Making.Avalonia.WebView.Core.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Making.Avalonia.WebView.Linux;

public static class LinuxWebViewExtensions
{
    public static void RegisterLinuxWebView(this IServiceCollection services)
    {
        services.AddSingleton<LinuxWebViewProvider>();
        WebViewProviderFactory.RegisterProvider<LinuxWebViewProvider>(SupportedPlatform.Linux);
    }
}